package com.google.gwt.gfx.client.style;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.ui.IsWidget;

public class StrokeStyle extends GFXStyle {

	public StrokeStyle(IsWidget buddy) {
		super(buddy);
	}

	public StrokeStyle(IsWidget buddy, Element element) {
		super(buddy, element);
	}

	public String getColor() {
		return element().getStyle().getBorderColor();
	}

	public double getOpacity() {
		return 1;
	}

	public int getWidth() {
		return Integer.parseInt(element().getStyle().getBorderWidth());
	}

	public void setColor(String color) {
		element().getStyle().setBorderColor(color);
	}

	public void setOpacity(double opacity) {

	}

	public void setWidth(int width) {
		element().getStyle().setBorderWidth(width, Unit.PX);
	}

}
